package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.time.LocalDateTime;

/**
 * 【请填写功能名称】对象 pws_queue
 * 
 * @author ruoyi
 * @date 2025-02-20
 */
@Data
@ApiModel(description="【pws_queue对象 ")
public class PwsQueue
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "id", type = IdType.AUTO) // 指定数据库主键字段为 id
    @ApiModelProperty(value = "主键")
    private Long pwsQueueId;

    /** 单号 */
    @Excel(name = "单号")
    @ApiModelProperty(value = "单号")
    private String orderNo;

    /** 产线号 */
    @Excel(name = "产线号")
    @ApiModelProperty(value = "产线号")
    private Integer lineNo;

    /** 订单状态 */
    @Excel(name = "订单状态")
    @ApiModelProperty(value = "订单状态")
    private Integer pwsStatus;

    /** 顺序 */
    @Excel(name = "顺序")
    @ApiModelProperty(value = "顺序")
    private Long sequence;

    @Excel(name = "是否使用ADS")
    @ApiModelProperty(value = "是否使用ADS")
    private Long isAds;
    @Excel(name = "是否使用TDS")
    @ApiModelProperty(value = "是否使用TDS")
    private Long isTds;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @TableField(exist = false)
    private String tankName;


    public void setPwsQueueId(Long pwsQueueId)
    {
        this.pwsQueueId = pwsQueueId;
    }

    public Long getPwsQueueId()
    {
        return pwsQueueId;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setLineNo(Integer lineNo) 
    {
        this.lineNo = lineNo;
    }

    public Integer getLineNo() 
    {
        return lineNo;
    }
    public void setPwsStatus(Integer pwsStatus) 
    {
        this.pwsStatus = pwsStatus;
    }

    public Integer getPwsStatus() 
    {
        return pwsStatus;
    }
    public void setSequence(Long sequence) 
    {
        this.sequence = sequence;
    }

    public Long getSequence() 
    {
        return sequence;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getPwsQueueId())
            .append("orderNo", getOrderNo())
            .append("lineNo", getLineNo())
            .append("pwsStatus", getPwsStatus())
            .append("createTime", getCreateTime())
            .append("sequence", getSequence())
            .toString();
    }
}
